package com.quick.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.quick.common.annotation.Excel;
import com.quick.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户信息对象 sys_user
 *
 * @Author: 吃素不吃肉
 * @Date: Tue Jul 25 14:29:20 CST 2023
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "用户信息")
public class SysUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /**
     * 部门ID
     */
    @Excel(name = "部门ID")
    @ApiModelProperty(value = "部门ID")
    private Long deptId;

    /**
     * 用户账号
     */
    @Excel(name = "用户账号")
    @ApiModelProperty(value = "用户账号")
    private String userName;

    /**
     * 用户昵称
     */
    @Excel(name = "用户昵称")
    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    /**
     * 用户类型
     */
    @Excel(name = "用户类型", readConverterExp = "0=系统用户,1=部门用户")
    @ApiModelProperty(value = "用户类型")
    private String userType;
    /**
     * 用户账户类型
     */
    @Excel(name = "用户账户类型",readConverterExp = "0=主账号,1=子账号")
    @ApiModelProperty(value = "用户账户类型")
    private String userAccountType;
    /**
     * 用户邮箱
     */
    @Excel(name = "用户邮箱")
    @ApiModelProperty(value = "用户邮箱")
    private String email;

    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    @ApiModelProperty(value = "手机号码")
    private String phoneNumber;

    /**
     * 用户性别（0男 1女 2未知）
     */
    @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知")
    @ApiModelProperty(value = "用户性别（0男 1女 2未知）")
    private String sex;

    /**
     * 头像地址
     */
    @Excel(name = "头像地址")
    @ApiModelProperty(value = "头像地址")
    private String avatar;

    /**
     * 密码
     */
    @Excel(name = "密码")
    @ApiModelProperty(value = "密码")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String password;

    /**
     * 帐号状态（0正常 1停用）
     */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
    @ApiModelProperty(value = "帐号状态（0正常 1停用）")
    private String status;

    /**
     * 删除标志（0存在 2删除）
     */
    @ApiModelProperty(value = "删除标志（0存在 2删除）")
    private String delFlag;

    /**
     * 最后登录IP
     */
    @Excel(name = "最后登录IP")
    @ApiModelProperty(value = "最后登录IP")
    private String loginIp;

    /**
     * 最后登录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    @ApiModelProperty(value = "最后登录时间")
    private Date loginDate;
    /**
     * 部门名称
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String deptName;



}
